package com.hxzy.controller.admin.product.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Author wy
 * @Description TODO
 * @Date 2024/1/15 10:31
 * @Version 1.0
 */
@Getter
@Setter
@ApiModel(value = "库存修改")
public class ProductStockChangeReq {
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "主键不能为空")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    @NotNull(message = "商家ID不能为空")
    private Long merchantId;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存(-1为不限量)")
    @NotNull(message = "库存不能为空")
    private Integer num;
}
